<?php
    $host = "localhost";
    $username = "root";
    $password = "root";
    $dbName = "pethospital";

    $connect_DB = mysqli_connect($host, $username, $password, $dbName);
    if(!$connect_DB){
        die("<script>alert('数据库连接失败！')</script>;history.go(-1);".mysqli_connect_errno());
    }

    mysqli_query($connect_DB, "SET NAMES UTF8");
?>



